﻿using SmartPlant.Modules.Base.ViewModels;
using System.ComponentModel.DataAnnotations;
using Telerik.Windows.Controls;

namespace SmartPlant.Modules.Base.UIEntity
{
    public class SpecInputModel : ViewModelBase
    {
        public SpecInputModel() { }
        /// <summary>
        /// 模板路径
        /// </summary>
        public string ReportName { get; set; }
        public IEnumerable<string> FileNames
        {
            get
            {
                return SpecInputViewModel.Reports.First(x => x.Name == ReportName).XMLs;
            }
        }
        /// <summary>
        /// XML配置文件
        /// </summary>
        [Required]
        public string FileName { get; set; }
        /// <summary>
        /// 选择导入文件路径 
        /// </summary>
        [Required]
        public string InputFilePath { get; set; }
        //[Required]
        //public string InputFilePath
        //{
        //    get
        //    {
        //        return this.inputFilePath;
        //    }
        //    set
        //    {
        //        this.inputFilePath = value;
        //        RaisePropertyChanged();
        //    }
        //}
    }
}
